package com.houxiurong.dao;

import com.houxiurong.entity.Blogger;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * BloggerDao接口
 *
 * @author jun
 */
public interface BloggerDao extends JpaRepository<Blogger, Integer> {

    /**
     * 根据用户名查询
     *
     * @param username
     * @return
     */
    @Query(" From Blogger u where u.username=:username")
    Blogger selectByUsername(String username);


}
